const {mysql} = require('../qcloud')

module.exports = async (ctx) => {
    const {page, pageSize} = ctx.request.query
    const specialList = await mysql('nideshop_topic')
        .limit(pageSize)
        .offset(Number(page) * pageSize)
        .select()

    ctx.state.data = {
        specialList
    }
}
